package com.ruoyi.project.module.pool.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.module.pool.mapper.PoolMapper;
import com.ruoyi.project.module.pool.domain.Pool;
import com.ruoyi.project.module.pool.service.IPoolService;
import com.ruoyi.common.support.Convert;

/**
 * 汇总 服务层实现
 * 
 * @author ruoyi
 * @date 2018-12-25
 */

@Service
public class PoolServiceImpl implements IPoolService 
{
	@Autowired
	private PoolMapper poolMapper;

	/**
     * 查询汇总信息
     * 
     * @param poolId 汇总ID
     * @return 汇总信息
     */
    @Override
	public Pool selectPoolById(Integer poolId)
	{
	    return poolMapper.selectPoolById(poolId);
	}
	
	/**
     * 查询汇总列表
     * 
     * @param pool 汇总信息
     * @return 汇总集合
     */
	@Override
	public List<Pool> selectPoolList(Pool pool)
	{
	    return poolMapper.selectPoolList(pool);
	}
	
    /**
     * 新增汇总
     * 
     * @param pool 汇总信息
     * @return 结果
     */
	@Override
	public int insertPool(Pool pool)
	{
	    return poolMapper.insertPool(pool);
	}
	
	/**
     * 修改汇总
     * 
     * @param pool 汇总信息
     * @return 结果
     */
	@Override
	public int updatePool(Pool pool)
	{
	    return poolMapper.updatePool(pool);
	}

	/**
     * 删除汇总对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePoolByIds(String ids)
	{
		return poolMapper.deletePoolByIds(Convert.toStrArray(ids));
	}
	
}
